<%@ page import="shopping.Action"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'success.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">


<link href="css/enter-interface.css" rel="stylesheet" type="text/css" />
<style>
div {
	height: 500px;
	width: 400px;
	text-align: center;
	margin: 0px auto;
}

img {
	margin-top: 100px;
	margin-right: 150px;
}

span {
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}
</style>
</head>

<body>
	<%
		if (Action.arr.size() == 0) {
	%>
	<center>
		<hr>
		对不起！购物车为空！&nbsp;&nbsp;&nbsp;&nbsp; <br> <br> <br>

	</center>
	<div>

		<img src="picture/12.jpg" />
		<h4>
			<a href="showgoods.jsp?">返回商品页</a>
		</h4>
	</div>
	<%
		}
	%>
	<%
		if (Action.arr.size() > 0) {
			Action.arr.clear();
	%>
	<center>
		<hr>
		购买成功！&nbsp;&nbsp;&nbsp;&nbsp; <br> <br> <br>

	</center>
	<div>

		<img src="picture/13.jpg" />
		<h4>
			<a href="showgoods.jsp?">返回商品页</a>
		</h4>
	</div>
	<%
		}
	%>


</body>
</html>